<?php
namespace common\models;


use yii\db\ActiveRecord;

class Group extends ActiveRecord
{
    public static function tableName()
    {
        return 'group';
    }

    public function rules()
    {
        return [
            [['id','launch_id','active_id','goods_id','group_num','current_group_num',
                'shop_id','status','create_time','expire_time','update_time','complete_time'],'integer'],
            ['group_name','string']

        ];
    }

    public function attributeLabels()
    {
        return [
            'id' => '自动增量',
            'group_name' => '团名',
            'launch_id' => '发起人id',
            'active_id' => '活动id',
            'goods_id' => '商品id',
            'group_num' => '允许成团人数',
            'current_group_num' => '当前参团人数',
            'shop_id' => '店铺id',
            'status' => '有效期内',
            'create_time' => '创建时间',
            'expire_time' => '有效期',
            'update_time' => '更新时间',
            'complete_time' => '成团时间',
        ];
    }


}